<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j">



    
        <rich:panel id="calisanPanelId">
            <f:facet name="header">#{messages['calisan.uye']}</f:facet>

            <s:decorate  template="/layout/edit.xhtml" id="idFR">
                <ui:define name="label">#{messages['calisan.ad']}</ui:define>
                <h:inputText id="name" required="true" 
                             value="#{calisanDao.calisan.ad}" requiredMessage="#{messages['calisan.zorunlu']}"/>              
            </s:decorate>
            
            
            <s:decorate template="/layout/edit.xhtml">
                <ui:define name="label">#{messages['calisan.soyad']}</ui:define>
                <h:inputText id="surname" required="true" 
                             value="#{calisanDao.calisan.soyad}" requiredMessage="#{messages['calisan.zorunlu']}"/>                     
            </s:decorate>
            
            
            <s:decorate template="/layout/edit.xhtml">
                <ui:define name="label">#{messages['calisan.yas']}</ui:define>
                <h:inputText id="age" required="true" 
                             value="#{calisanDao.calisan.yas}" requiredMessage="#{messages['calisan.zorunlu']}"/>                     
            </s:decorate>
            
            
            <s:decorate template="/layout/edit.xhtml">
                <ui:define name="label">#{messages['calisan.cinsiyet']}</ui:define>
                <h:inputText id="cinsiyet" required="true" 
                             value="#{calisanDao.calisan.cinsiyeti}" requiredMessage="#{messages['calisan.zorunlu']}"/>                      
            </s:decorate>
                                       
            
             <s:decorate template="/layout/edit.xhtml">
                <ui:define name="label">#{messages['calisan.egitim']}</ui:define>
                <h:inputText id="education" required="true" 
                             value="#{calisanDao.calisan.egitim}" requiredMessage="#{messages['calisan.zorunlu']}"/>                    
            </s:decorate>
               
          
            <div style="clear:both"/>
             <a:commandButton ajaxSingle="true" value="#{messages['calisan.kayit']}" action="#{calisanDao.calisanEkle()}"   reRender="messagePanel,tabpanelId" eventsQueue="test" />
            
        </rich:panel>

       

    
    



</ui:composition>
